From: Roan Kattouw Date: Tue, 30 Aug 2011 11:39:43 +0000 (+0000) Subject: Fix a message key typo in r41961 (!!), which didn't matter before because the relevan... X-Git-Tag: 1.31.0-rc.0~28017 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=6f1fee123b752b8f689153cac4e7f2334d7a9b86;p=lhc%2Fweb%2Fwiklou.git Fix a message key typo in r41961 (!!), which didn't matter before because the relevant code (and the message) wasn't reachable. --- diff --git a/includes/Title.php b/includes/Title.php index 81715ca7e3..41b8e54078 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1555,7 +1555,7 @@ class Title { $errors[] = array( 'immobile-source-namespace', $this->getNsText() ); } elseif ( !$this->isMovable() ) { // Less specific message for rarer cases - $errors[] = array( 'immobile-page' ); + $errors[] = array( 'immobile-source-page' ); } } elseif ( $action == 'move-target' ) { if ( !MWNamespace::isMovable( $this->mNamespace ) ) { diff --git a/tests/phpunit/includes/TitlePermissionTest.php b/tests/phpunit/includes/TitlePermissionTest.php index e9e83dd533..7016164d4a 100644 --- a/tests/phpunit/includes/TitlePermissionTest.php +++ b/tests/phpunit/includes/TitlePermissionTest.php @@ -580,7 +580,7 @@ class TitlePermissionTest extends MediaWikiLangTestCase { $this->title->userCan( 'move' ) ); $this->title->mInterwiki = "no"; - $this->assertEquals( array( array( 'immobile-page' ) ), + $this->assertEquals( array( array( 'immobile-source-page' ) ), $this->title->getUserPermissionsErrors( 'move', $this->user ) ); $this->assertEquals( false, $this->title->userCan( 'move' ) );